package org.s45.erp.api.params;

import lombok.Data;

import java.util.List;
import java.util.Set;

/**
 * 简化登录结果的解析
 */
@Data
public class LoginResult {
    private String token;
    private String roleType;
    private User user;
    private Set<String> funcList;
    private String msgTip;
    private List<UserBtn> userBtn;

    @Data
    public static class User {
        private Long id;
        private String username;
        private String loginName;
    }

    @Data
    public static class UserBtn {
        private String url;
        private String btnStr;
    }
}